<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      th:replace="fragments/layout(title='信息登记-编辑',cssPaths='/static/css/baseinfo/yljg.css',jsPaths='/static/js/elder/elderly/editone.js')">
<body>
<div class="right" th:fragment="right">
    <!--面包屑-->
    <div class="breadcrumb layui-bg-gray">
                <span class="layui-breadcrumb" lay-separator=">">
                    <a th:href="@{/}">首页</a>
                      <a href="/gbElderly/elist">老人管理</a>
                        <a href="/enterElderly">信息登记</a>
                        <a><cite>编辑</cite></a>
                </span>
    </div>
    <!--主体内容区-->
    <div class="form-content">
        <div class="layui-tab" lay-filter="demo">
            <ul class="layui-tab-title" lay-filter="">
                <li class="layui-nav-item layui-this">1.基本信息登记</li>
                <li class="layui-nav-item" id="two">2.家属信息登记</li>
                <li class="layui-nav-item" id="three">3.健康信息登记</li>
                <li class="layui-nav-item" id="four">4.资料附件上传</li>
            </ul>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    <form class="layui-form" method="post" id="jbxxform">
                        <div class="layui-row">
                            <div class="layui-col-md4 layui-row" style="border-bottom: 0;">
                                <div class="layui-col-md12">
                                    <div class="layui-form-item">
                                        <label class="layui-form-label must">姓名</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="name" th:value="${elderly.name}" maxlength="10"
                                                   lay-verify="required" placeholder="请输入老人姓名" autocomplete="off"
                                                   class="layui-input">
                                            <input type="hidden" id="id" name="id" th:value="${elderly.id}">
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-col-md12">
                                    <div class="layui-form-item">
                                        <label class="layui-form-label must">身份证号</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="idNo" id="idNo" data-label="身份证号"
                                                   lay-verify="required|identity|only" placeholder="请输入老人身份证号"
                                                   autocomplete="off" class="layui-input" th:value="${elderly.idNo}">
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-col-md6">
                                    <div class="layui-form-item">
                                        <label class="layui-form-label must">性别</label>
                                        <div class="layui-input-block" style="width: 150px;">
                                            <select name="sex" lay-verify="required">
                                                <option value=""></option>
                                                <option value="男" th:selected="${elderly.sex} eq '男'">男</option>
                                                <option value="女" th:selected="${elderly.sex} eq '女'">女</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-col-md6">
                                    <div class="layui-form-item">
                                        <label class="layui-form-label must">生日</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="birthday" id="birthday" readonly
                                                   lay-verify="required"
                                                   placeholder="请选择生日" autocomplete="off" class="layui-input"
                                                   style="width: 150px;"
                                                   th:value="${#dates.format(elderly.birthday,'yyyy-MM-dd')}">
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-col-md6">
                                    <div class="layui-form-item">
                                        <label class="layui-form-label must">人员类别</label>
                                        <div class="layui-input-block" style="width: 150px;">
                                            <select name="personCategory" lay-verify="required">
                                                <option value="">请选择</option>
                                                <option value="0" th:selected="${elderly.personCategory} eq 0">老年人
                                                </option>
                                                <option value="1" th:selected="${elderly.personCategory} eq 1">残疾人
                                                </option>
                                                <option value="2" th:selected="${elderly.personCategory} eq 2">未成年人
                                                </option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-col-md6">
                                    <div class="layui-form-item">
                                        <label class="layui-form-label must">户籍类别</label>
                                        <div class="layui-input-block" style="width: 150px;">
                                            <select name="censusRegisterCategory" lay-verify="required">
                                                <option value="">请选择</option>
                                                <option value="0" th:selected="${elderly.censusRegisterCategory} eq 0">农业</option>
                                                <option value="1" th:selected="${elderly.censusRegisterCategory} eq 1">城市</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-col-md12">
                                    <div class="layui-form-item">
                                        <label class="layui-form-label">联系电话</label>
                                        <div class="layui-input-block">
                                            <input type="text" name="phone" placeholder="请输入手机号码"
                                                   autocomplete="off" class="layui-input" th:value="${elderly.phone}">
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <div class="layui-col-md4">
                                <div class="layui-form-item">
                                    <label class="layui-form-label" style="line-height: 174px;">头像</label>
                                    <div class="layui-input-block">
                                        <div style="position: relative;width: 150px;height: 174px;background: floralwhite;text-align: center;line-height: 174px;">
                                            <img th:if="${elderly.avatar eq ''}" src="/static/imgs/txsc.png" alt="头像"
                                                 id="avatarimg" style="cursor: pointer;">
                                            <img th:if="${elderly.avatar ne ''}"
                                                 th:src="@{'/storage/files/' + ${elderly.avatar}}" alt="头像"
                                                 id="avatarimg" style="cursor: pointer;">
                                        </div>
                                        <input type="hidden" id="avatar" name="avatar">
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="layui-row">
                            <div class="layui-col-md4">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">婚姻状况</label>
                                    <div class="layui-input-block">
                                        <select name="wedding">
                                            <option value="1" th:selected="${elderly.wedding eq '1'}">未婚</option>
                                            <option value="2" th:selected="${elderly.wedding eq '2'}">已婚</option>
                                            <option value="3" th:selected="${elderly.wedding eq '3'}">丧偶</option>
                                            <option value="4" th:selected="${elderly.wedding eq '4'}">离婚</option>
                                            <option value="5" th:selected="${elderly.wedding eq '5'}">未说明的婚姻状况</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-md4">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">政治面貌</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="zmstatus" maxlength="10"
                                               placeholder="请输入政治面貌" autocomplete="off" class="layui-input"
                                               th:value="${elderly.zmstatus}">
                                        </select>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="layui-row">
                            <div class="layui-col-md4">
                                <div class="layui-form-item">
                                    <label class="layui-form-label ">文化程度</label>
                                    <div class="layui-input-block">
                                        <select name="education">
                                            <option value=""></option>
                                            <option value="1" th:selected="${elderly.education eq '1'}">文盲</option>
                                            <option value="2" th:selected="${elderly.education eq '2'}">小学</option>
                                            <option value="3" th:selected="${elderly.education eq '3'}">初中</option>
                                            <option value="4" th:selected="${elderly.education eq '4'}">高中/技校/中专
                                            </option>
                                            <option value="5" th:selected="${elderly.education eq '5'}">大学专科及以上</option>
                                            <option value="6" th:selected="${elderly.education eq '6'}">不详</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-md4 ">
                                <div class="layui-form-item">
                                    <label class="layui-form-label ">经济来源</label>
                                    <div class="layui-input-block">
                                        <select name="fmoney">
                                            <option value=""></option>
                                            <option value="1" th:selected="${elderly.fmoney eq '1'}">退休金/养老金</option>
                                            <option value="2" th:selected="${elderly.fmoney eq '2'}">子女补贴</option>
                                            <option value="3" th:selected="${elderly.fmoney eq '3'}">亲友资助</option>
                                            <option value="4" th:selected="${elderly.fmoney eq '4'}">其它补贴</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="layui-row">
                            <div class="layui-col-md4 ">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">民族</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="nation" maxlength="10" placeholder="请输入民族"
                                               autocomplete="off"
                                               class="layui-input" th:value="${elderly.nation}">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-md4 ">
                                <div class="layui-form-item">
                                    <label class="layui-form-label ">原居住情况</label>
                                    <div class="layui-input-block">
                                        <select name="support">
                                            <option value="1" th:selected="${elderly.support eq '1'}">独居</option>
                                            <option value="2" th:selected="${elderly.support eq '2'}">与配偶/伴侣居住</option>
                                            <option value="3" th:selected="${elderly.support eq '3'}">与子女居住</option>
                                            <option value="4" th:selected="${elderly.support eq '4'}">与父母居住</option>
                                            <option value="5" th:selected="${elderly.support eq '5'}">与兄弟姐妹居住</option>
                                            <option value="6" th:selected="${elderly.support eq '6'}">与其他亲属居住</option>
                                            <option value="7" th:selected="${elderly.support eq '7'}">与非亲属关系的人居住
                                            </option>
                                            <option value="8" th:selected="${elderly.support eq '8'}">养老机构</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="layui-row">
                            <div class="layui-col-md4 ">
                                <div class="layui-form-item">
                                    <label class="layui-form-label ">宗教信仰</label>
                                    <div class="layui-input-block">
                                        <select name="faith">
                                            <option value="0" th:selected="${elderly.faith eq '0'}">无</option>
                                            <option value="1" th:selected="${elderly.faith eq '1'}">有</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-md4 ">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">医保卡号</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="ybnum" maxlength="10" placeholder="医保卡号"
                                               autocomplete="off"
                                               class="layui-input" th:value="${elderly.ybnum}">
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="layui-row">
                            <div class="layui-col-md4 ">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">特困供养证号</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="fiveNo" maxlength="10" placeholder="请输入特困供养证号"
                                               autocomplete="off"
                                               class="layui-input" th:value="${elderly.fiveNo}">
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-md4 ">
                                <div class="layui-form-item">
                                    <label class="layui-form-label ">医疗费用支付方式</label>
                                    <div class="layui-input-block">
                                        <select name="zfstatus">
                                            <option value="1" th:selected="${elderly.zfstatus eq '1'}">城镇职工基本医疗保险
                                            </option>
                                            <option value="2" th:selected="${elderly.zfstatus eq '2'}">城镇居住基本医疗保险
                                            </option>
                                            <option value="3" th:selected="${elderly.zfstatus eq '3'}">新型农村合作医疗</option>
                                            <option value="4" th:selected="${elderly.zfstatus eq '4'}">贫困救助</option>
                                            <option value="5" th:selected="${elderly.zfstatus eq '5'}">商业医疗保险</option>
                                            <option value="6" th:selected="${elderly.zfstatus eq '6'}">全公费</option>
                                            <option value="7" th:selected="${elderly.zfstatus eq '7'}">全自费</option>
                                            <option value="8" th:selected="${elderly.zfstatus eq '8'}">其它</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="layui-row">
                            <div class="layui-col-md12">
                                <div class="layui-form-item">
                                    <label class="layui-form-label must">户籍地址</label>
                                    <div class="layui-input-inline">
                                        <!--<div class="city-picker-selector" id="city-picker-selector1"></div>-->
                                        <select id="province" lay-filter="province" lay-verify="required">
                                            <option value="">请选择省</option>
                                            <option th:each="p : ${provinceList}" th:value="${p.id}" th:text="${p.name}"
                                                    th:selected="${elderly.provinceCode eq p.id}"></option>
                                        </select>
                                    </div>
                                    <div class="layui-input-inline">
                                        <select id="city" lay-filter="city" lay-verify="required">
                                            <option value="">请选择市</option>
                                            <option th:if="null != ${cityList}" th:each="p : ${cityList}"
                                                    th:value="${p.id}" th:text="${p.name}"
                                                    th:selected="${elderly.cityCode eq p.id}"></option>
                                        </select>
                                    </div>
                                    <div class="layui-input-inline">
                                        <select id="area" lay-filter="area" lay-verify="required">
                                            <option value="">请选择区(县)</option>
                                            <option th:if="null != ${areaList}" th:each="p : ${areaList}"
                                                    th:value="${p.id}" th:text="${p.name}"
                                                    th:selected="${elderly.areaCode eq p.id}"></option>
                                        </select>
                                    </div>
                                    <div class="layui-input-inline">
                                        <select id="town" lay-filter="town" lay-verify="required">
                                            <option value="">请选择乡镇(街道)</option>
                                            <option th:if="null != ${townList}" th:each="p : ${townList}"
                                                    th:value="${p.id}" th:text="${p.name}"
                                                    th:selected="${elderly.townCode eq p.id}"></option>
                                        </select>
                                    </div>
                                    <div class="layui-input-inline">
                                        <select id="village" lay-filter="village" lay-verify="required">
                                            <option value="">请选择社区(村)</option>
                                            <option th:if="null != ${villageList}" th:each="p : ${villageList}"
                                                    th:value="${p.id}" th:text="${p.name}"
                                                    th:selected="${elderly.villageCode eq p.id}"></option>
                                        </select>
                                    </div>
                                    <input type="hidden" id="provinceCode" name="provinceCode"
                                           th:value="${elderly.provinceCode}">
                                    <input type="hidden" id="cityCode" name="cityCode" th:value="${elderly.cityCode}">
                                    <input type="hidden" id="areaCode" name="areaCode" th:value="${elderly.areaCode}">
                                    <input type="hidden" id="townCode" name="townCode" th:value="${elderly.townCode}">
                                    <input type="hidden" id="villageCode" name="villageCode"
                                           th:value="${elderly.villageCode}">
                                    <input type="hidden" id="provinceName" name="provinceName"
                                           th:value="${elderly.provinceName}">
                                    <input type="hidden" id="cityName" name="cityName" th:value="${elderly.cityName}">
                                    <input type="hidden" id="areaName" name="areaName" th:value="${elderly.areaName}">
                                    <input type="hidden" id="townName" name="townName" th:value="${elderly.townName}">
                                    <input type="hidden" id="villageName" name="villageName"
                                           th:value="${elderly.villageName}">
                                </div>
                                <div class="layui-col-md7 layui-col-md-offset1 layui-input-block">
                                    <input type="text" name="address" maxlength="100" lay-verify="required"
                                           placeholder="请输入详细地址"
                                           autocomplete="off" class="layui-input" th:value="${elderly.address}">
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <button class="layui-btn  layui-btn-normal" type="button" id="jbxxbtn">保存</button>
                                <a href="/enterElderly" class="layui-btn layui-btn-primary">返回</a>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="layui-tab-item">
                    <div class="page-content">
                        <div class="layui-btn-group">
                            <a href="javascript:void(0)" class="layui-btn layui-btn-normal" id="lxradd">新增</a>
                        </div>
                        <table class="layui-table">
                            <colgroup>
                                <col width="100">
                                <col width="100">
                                <col width="100">
                                <col width="150">
                                <col width="200">
                                <col width="200">
                                <col>
                            </colgroup>
                            <thead>
                            <tr>
                                <th>姓名</th>
                                <th>联系电话</th>
                                <th>与老人关系</th>
                                <th>身份证号</th>
                                <th>联系地址</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody id="lxrtable">

                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="layui-tab-item">
                    <form class="layui-form" id="jkform">
                        <div class="layui-row">
                            <div class="layui-col-md4">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">视力</label>
                                    <div class="layui-input-block">
                                        <select name="vision">
                                            <option value="0" th:selected="${elderly.vision eq '0'}" selected>正常
                                            </option>
                                            <option value="1" th:selected="${elderly.vision eq '1'}">一级盲</option>
                                            <option value="2" th:selected="${elderly.vision eq '2'}">二级盲</option>
                                            <option value="3" th:selected="${elderly.vision eq '3'}">一级低视力</option>
                                            <option value="4" th:selected="${elderly.vision eq '4'}">二级低视力</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-md4">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">听力</label>
                                    <div class="layui-input-block">
                                        <select name="hear">
                                            <option value="0" th:selected="${elderly.hear eq '0'}" selected>正常</option>
                                            <option value="1" th:selected="${elderly.hear eq '1'}">一级</option>
                                            <option value="2" th:selected="${elderly.hear eq '2'}">二级</option>
                                            <option value="3" th:selected="${elderly.hear eq '3'}">三级</option>
                                            <option value="4" th:selected="${elderly.hear eq '4'}">四级</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="layui-row">
                            <div class="layui-col-md4">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">智力</label>
                                    <div class="layui-input-block">
                                        <select name="wit">
                                            <option value="0" th:selected="${elderly.wit eq '0'}" selected>正常</option>
                                            <option value="1" th:selected="${elderly.wit eq '1'}">重度一级</option>
                                            <option value="2" th:selected="${elderly.wit eq '2'}">重度二级</option>
                                            <option value="3" th:selected="${elderly.wit eq '3'}">中度三级</option>
                                            <option value="4" th:selected="${elderly.wit eq '4'}">轻度四级</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-md4">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">言语</label>
                                    <div class="layui-input-block">
                                        <select name="talk">
                                            <option value="0" th:selected="${elderly.talk eq '0'}" selected>正常</option>
                                            <option value="1" th:selected="${elderly.talk eq '1'}">一级</option>
                                            <option value="2" th:selected="${elderly.talk eq '2'}">二级</option>
                                            <option value="3" th:selected="${elderly.talk eq '3'}">三级</option>
                                            <option value="4" th:selected="${elderly.talk eq '4'}">四级</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="layui-row">
                            <div class="layui-col-md4">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">精神</label>
                                    <div class="layui-input-block">
                                        <select name="spirit">
                                            <option value="0" th:selected="${elderly.spirit eq '0'}" selected>正常
                                            </option>
                                            <option value="1" th:selected="${elderly.spirit eq '1'}">重度一级</option>
                                            <option value="2" th:selected="${elderly.spirit eq '2'}">中度二级</option>
                                            <option value="2" th:selected="${elderly.spirit eq '3'}">轻度三级</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-col-md4">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">肢体</label>
                                    <div class="layui-input-block">
                                        <select name="limb">
                                            <option value="0" th:selected="${elderly.limb eq '0'}" selected>正常</option>
                                            <option value="1" th:selected="${elderly.limb eq '1'}">重度一级</option>
                                            <option value="3" th:selected="${elderly.limb eq '3'}">中度二级</option>
                                            <option value="4" th:selected="${elderly.limb eq '4'}">中度三级</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md4">
                            <div class="layui-form-item">
                                <label class="layui-form-label">自理情况</label>
                                <div class="layui-input-block">
                                    <select name="healthCondition">
                                        <option value="">请选择</option>
                                        <option value="1" th:selected="${elderly.healthCondition eq '1'}">具备自理能力
                                        </option>
                                        <option value="2" th:selected="${elderly.healthCondition eq '2'}">半失能</option>
                                        <option value="3" th:selected="${elderly.healthCondition eq '3'}">失能</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">过敏药物</label>
                            <div class="layui-input-block">
                                <input type="text" name="allergyYaowu" placeholder="请输入过敏药物" autocomplete="off"
                                       class="layui-input" maxlength="200" th:value="${elderly.allergyYaowu}">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">禁忌食物</label>
                            <div class="layui-input-block">
                                <input type="text" name="allergyFood" placeholder="请输入禁忌食物" autocomplete="off"
                                       class="layui-input" maxlength="200" th:value="${elderly.allergyFood}">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">主要疾病</label>
                            <div class="layui-input-block">
                                <input type="text" name="impDisease" placeholder="请输入主要疾病" autocomplete="off"
                                       class="layui-input" maxlength="200" th:value="${elderly.impDisease}">
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <button class="layui-btn  layui-btn-normal" id="jkbtn" type="button">保存</button>
                                <a href="/enterElderly" class="layui-btn layui-btn-primary">返回</a>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="layui-tab-item" id="lezlup">
                    <blockquote class="layui-elem-quote">老人资料 点击按钮进行上传（小于5M的图片）,没有则不上传</blockquote>
                    <div class="layui-row">
                        <div class="layui-col-md1 label">
                            身份证：
                        </div>
                        <div class="layui-col-md10 qtxk-box">
                            <div th:if="${elderlyPathOne != null}" th:each="cert:${elderlyPathOne}"
                                 class="layui-upload-list" style="margin:0 25px 5px;">
                                <img class="layui-upload-img"
                                     th:src="@{'/storage/images/' + ${cert.path} +'_120x120'}"/>
                                <p class="file-nme" th:title="${cert.name}" th:text="${cert.name}"></p>
                                <p class="msg-box">
                                    <a target="_blank" th:href="@{'/storage/files/' + ${cert.path}}"
                                       class="layui-btn layui-btn-normal layui-btn-xs">查看</a>
                                    <a th:href="@{'/storage/files/dl/' + ${cert.path}}"
                                       class="layui-btn layui-btn-normal  layui-btn-xs">下载</a>
                                    <button th:data-pthid="${cert.id}"
                                            class="layui-btn layui-btn-normal  layui-btn-xs pthid" type="button">删除
                                    </button>
                                </p>
                            </div>
                            <img class="layui-upload-img" src="/static/imgs/imgup.png" id="lazlone" data-type="1">
                        </div>
                    </div>
                    <div class="layui-row">
                        <div class="layui-col-md1 label">
                            特困认定材料：
                        </div>
                        <div class="layui-col-md10 qtxk-box">
                            <div th:if="${elderlyPathTwo != null}" th:each="cert:${elderlyPathTwo}"
                                 class="layui-upload-list" style="margin:0 25px 5px;">
                                <img class="layui-upload-img"
                                     th:src="@{'/storage/images/' + ${cert.path} +'_120x120'}"/>
                                <p class="file-nme" th:title="${cert.name}" th:text="${cert.name}"></p>
                                <p class="msg-box">
                                    <a target="_blank" th:href="@{'/storage/files/' + ${cert.path}}"
                                       class="layui-btn layui-btn-normal layui-btn-xs">查看</a>
                                    <a th:href="@{'/storage/files/dl/' + ${cert.path}}"
                                       class="layui-btn layui-btn-normal  layui-btn-xs">下载</a>
                                    <button th:data-pthid="${cert.id}"
                                            class="layui-btn layui-btn-normal  layui-btn-xs pthid" type="button">删除
                                    </button>
                                </p>
                            </div>
                            <img class="layui-upload-img" src="/static/imgs/imgup.png" data-type="2" id="lazltwo">
                        </div>
                    </div>
                    <div class="layui-row">
                        <div class="layui-col-md1 label">
                            特困人员救助供养证：
                        </div>
                        <div class="layui-col-md10 qtxk-box">
                            <div th:if="${elderlyPathThree != null}" th:each="cert:${elderlyPathThree}"
                                 class="layui-upload-list" style="margin:0 25px 5px;">
                                <img class="layui-upload-img"
                                     th:src="@{'/storage/images/' + ${cert.path} +'_120x120'}"/>
                                <p class="file-nme" th:title="${cert.name}" th:text="${cert.name}"></p>
                                <p class="msg-box">
                                    <a target="_blank" th:href="@{'/storage/files/' + ${cert.path}}"
                                       class="layui-btn layui-btn-normal layui-btn-xs">查看</a>
                                    <a th:href="@{'/storage/files/dl/' + ${cert.path}}"
                                       class="layui-btn layui-btn-normal  layui-btn-xs">下载</a>
                                    <button th:data-pthid="${cert.id}"
                                            class="layui-btn layui-btn-normal  layui-btn-xs pthid" type="button">删除
                                    </button>
                                </p>
                            </div>
                            <img class="layui-upload-img" src="/static/imgs/imgup.png" data-type="3" id="lazlthree">
                        </div>
                    </div>
                    <div class="layui-row">
                        <div class="layui-col-md1 label">
                            医保卡：
                        </div>
                        <div class="layui-col-md10 qtxk-box">
                            <div th:if="${elderlyPathFour != null}" th:each="cert:${elderlyPathFour}"
                                 class="layui-upload-list" style="margin:0 25px 5px;">
                                <img class="layui-upload-img"
                                     th:src="@{'/storage/images/' + ${cert.path} +'_120x120'}"/>
                                <p class="file-nme" th:title="${cert.name}" th:text="${cert.name}"></p>
                                <p class="msg-box">
                                    <a target="_blank" th:href="@{'/storage/files/' + ${cert.path}}"
                                       class="layui-btn layui-btn-normal layui-btn-xs">查看</a>
                                    <a th:href="@{'/storage/files/dl/' + ${cert.path}}"
                                       class="layui-btn layui-btn-normal  layui-btn-xs">下载</a>
                                    <button th:data-pthid="${cert.id}"
                                            class="layui-btn layui-btn-normal  layui-btn-xs pthid" type="button">删除
                                    </button>
                                </p>
                            </div>
                            <img class="layui-upload-img" src="/static/imgs/imgup.png" data-type="4" id="lazlfour">
                        </div>
                    </div>
                    <div class="layui-row">
                        <div class="layui-col-md1 label">
                            残疾证：
                        </div>
                        <div class="layui-col-md10 qtxk-box">
                            <div th:if="${elderlyPathFive != null}" th:each="cert:${elderlyPathFive}"
                                 class="layui-upload-list" style="margin:0 25px 5px;">
                                <img class="layui-upload-img"
                                     th:src="@{'/storage/images/' + ${cert.path} +'_120x120'}"/>
                                <p class="file-nme" th:title="${cert.name}" th:text="${cert.name}"></p>
                                <p class="msg-box">
                                    <a target="_blank" th:href="@{'/storage/files/' + ${cert.path}}"
                                       class="layui-btn layui-btn-normal layui-btn-xs">查看</a>
                                    <a th:href="@{'/storage/files/dl/' + ${cert.path}}"
                                       class="layui-btn layui-btn-normal  layui-btn-xs">下载</a>
                                    <button th:data-pthid="${cert.id}"
                                            class="layui-btn layui-btn-normal  layui-btn-xs pthid" type="button">删除
                                    </button>
                                </p>
                            </div>
                            <img class="layui-upload-img" src="/static/imgs/imgup.png" data-type="5" id="lazlfive">
                        </div>
                    </div>
                    <div class="layui-row">
                        <div class="layui-col-md1 label">
                            入住合同：
                        </div>
                        <div class="layui-col-md10 qtxk-box">
                            <div th:if="${elderlyPathSix != null}" th:each="cert:${elderlyPathSix}"
                                 class="layui-upload-list" style="margin:0 25px 5px;">
                                <img class="layui-upload-img"
                                     th:src="@{'/storage/images/' + ${cert.path} +'_120x120'}"/>
                                <p class="file-nme" th:title="${cert.name}" th:text="${cert.name}"></p>
                                <p class="msg-box">
                                    <a target="_blank" th:href="@{'/storage/files/' + ${cert.path}}"
                                       class="layui-btn layui-btn-normal layui-btn-xs">查看</a>
                                    <a th:href="@{'/storage/files/dl/' + ${cert.path}}"
                                       class="layui-btn layui-btn-normal  layui-btn-xs">下载</a>
                                    <button th:data-pthid="${cert.id}"
                                            class="layui-btn layui-btn-normal  layui-btn-xs pthid" type="button">删除
                                    </button>
                                </p>
                            </div>
                            <img class="layui-upload-img" src="/static/imgs/imgup.png" data-type="6" id="lazlsix">
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>
<div class="layui-tab-content" id="lxrhtml" hidden>
    <form class="layui-form" id="lxrfrom">
        <div class="layui-form-item">
            <label class="layui-form-label must">姓名</label>
            <div class="layui-input-block">
                <input type="text" name="name" placeholder="请输入" autocomplete="off" class="layui-input" id="folkName"
                       maxlength="10">
                <input type="text" name="elderlyId" hidden id="folkElderId">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">身份证号</label>
            <div class="layui-input-block">
                <input type="text" name="cardNo" placeholder="请输入身份证号" autocomplete="off" class="layui-input"
                       id="folkCardNo" maxlength="20">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">与老人关系</label>
            <div class="layui-input-block">
                <input type="text" name="relation" placeholder="请输入与老人关系" autocomplete="off" class="layui-input"
                       id="folkRelation" maxlength="20">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label must">联系电话</label>
            <div class="layui-input-block">
                <input type="text" name="phone" placeholder="请输入联系电话" autocomplete="off" class="layui-input"
                       id="folkPhone">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">联系地址</label>
            <div class="layui-input-block">
                <input type="text" name="address" placeholder="请输入联系地址" autocomplete="off" class="layui-input"
                       id="folkAddress" maxlength="200">
            </div>
        </div>
    </form>
</div>
